﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using VOL.Entity.AttributeManager;
using VOL.SmartMecial.Dtos;
using VOL.SmartMecial.IServices.EvaluateNurseCare;

namespace VOL.WebApi.Controllers.SmartMecial
{
    //[Route("api/[controller]")]
    //[ApiController]

    [Route("api/TellController")]
    [PermissionTable(Name = "TellController")]
    public class TellController : ControllerBase
    {
        private readonly ITellService _service;

        public TellController(ITellService service)
        {
            _service = service;
        }

        /// <summary>
        /// 获取医嘱信息
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        [HttpGet("GetTell")]
        public async Task<List<TellDTO>> GetTell(string? name)
        {
            return await _service.GetTell(name);
        }
    }
}
